<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
  <script>
    /**
     * rest参数（用于代替arguments），
     * 一般以 “...args”的方式存在，且一般放在最后面
     */

    let m2 = function (){
        console.log("argument",arguments)
    }
    let m1 = (...param)=>{
        console.log("rest",param)
    }
    m1("Jackson","Jason","Black","Mike")
    m2("Jackson","Jason","Black","Mike")
  </script>
</body>
</html>